package com.kaifamiao.mapper;

import com.kaifamiao.domain.User;
import com.kaifamiao.exception.DaoException;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    User find(Integer id ) throws DaoException;

    List<User> findAll(Integer id ) throws DaoException;

    // 保存单个User并返回受影响记录数
    int persist( User user ) throws DaoException;

    int update( User user ) throws DaoException;

    int remove( Integer id ) throws DaoException;

}
